home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ASME's Mechanical Engine…ing Toolkit 1997 December
/
ASME's Mechanical Engineering Toolkit 1997 December.iso
/
c_lang
/
varinc.lzh
/
PAGE74.C
< prev
next >
Wrap
Text File
|
1979-11-30
|
195b
|
9 lines
#define ADD_SAFE(a, b, sum, errfn)
{
sum = (a) + (b);
if ((a) > 0 && (b) > 0 && sum <= 0)
errfn(a, b);
else if ((a) < 0 && (b) < 0 && sum >= 0)
errfn(a, b);
}